import React, { FC, useEffect, useMemo, useState } from "react"
import ReactDOM from 'react-dom'
import {
  SchemaForm,
  SchemaMarkupField as Field,
  FormButtonGroup,
  createFormActions,
  Submit,
  Reset
} from '@formily/antd' // 或者 @formily/next
import { Input } from 'antd'
import 'antd/dist/antd.css'
import "@/icons/";
import SvgIcon from '@/components/SvgIcon'
import svg from '@/svg/room.svg'
import style from './index.less'
import { Link, KeepAlive } from 'umi'
console.log(svg)
const App = function() {
  // useEffect(() => {
  //   actions.setFieldState('name', state => {
  //     state.visible = true
  //   })
  // }, [])
  const [count,setCount] = useState(0)
  const [list, setList] = useState<any>([])
  useEffect(() => {
    const arr = new Array(80).fill('null') || [];
    setTimeout(()=> {
      setList(arr)
    }, 200)

  }, [])
  return (
    <div>
        <button onClick={() => setCount(count+1)}>点这里{count}</button>
        <ul>
        {
         list.map((item: any, index: any) => (<li className={style.li} key={index}>
            <Link to={`/home?text=点击这里${index}`}>点击这里{index}</Link>
            </li>))
        }
      </ul>
    </div>
  )
}
export default App;
